#!/bin/bash
# If no argumets, then listing the current directory.
# Otherwise, listing each subdirectory.
if test $# = 0
	then ls
else
	for i
	do 
		ls -l $i | grep '^d'
	done
fi

